<?php /* Smarty version 2.6.16, created on 2009-04-16 09:00:42
         compiled from Memberships.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'Memberships.html', 5, false),array('function', 'language', 'Memberships.html', 22, false),array('function', 'html_options', 'Memberships.html', 72, false),array('function', 'url', 'Memberships.html', 134, false),)), $this); ?>
<table style="width:100%;" cellspacing="0">
    <tr>
        <td>
        <?php echo $this->_tpl_vars['jsValMess']; ?>

        <?php echo smarty_function_messages(array('block' => 'Memberships'), $this);?>

        <?php $_from = $this->_tpl_vars['aMemberships']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aMembership']):
?>
        <a name="memb<?php echo $this->_tpl_vars['aMembership']['membership_id']; ?>
"></a>

        <form method="post" action="<?php echo $this->_tpl_vars['sUrl']; ?>
" enctype="multipart/form-data">
        <?php if (! $this->_tpl_vars['sCreate']): ?>
        <input type="hidden" name="aMemb[membership_id]" value="<?php echo $this->_tpl_vars['aMembership']['membership_id']; ?>
" />
		<?php endif; ?>

        <table cellspacing="0" width="100%" class="forumline">
            <tr>
                <td class="row-header" colspan="2">
                <span>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                        <?php if ($this->_tpl_vars['sCreate']): ?>
                        <?php echo smarty_function_language(array('text' => 'menu.memberships.create_new'), $this);?>

                        <?php else: ?>
                        	<?php echo smarty_function_language(array('text' => 'Mod_Account.usergroup'), $this);?>
: <?php echo $this->_tpl_vars['aMembership']['title']; ?>
 (ID: <?php echo $this->_tpl_vars['aMembership']['membership_id']; ?>
)
                        <?php endif; ?>
                        </td>
                        <td style="text-align: right; padding-bottom: 4px;">
                            <?php if (! $this->_tpl_vars['aMembership']['is_special']): ?>
                                <?php if ($this->_tpl_vars['aMembership']['membership_id'] > 3): ?><input type="submit" name="act[delete_membership]" value="<?php echo smarty_function_language(array('text' => 'Mod_Account.delete_membership'), $this);?>
" style="cursor:pointer;font-size:10pt;" onclick="return sure();"/>&nbsp;<?php endif; ?>
                            <?php endif; ?>
                        </td>
                    </tr>
                    </table>
                    </span>
                </td>
            </tr>
            <tr>
                <th align="center" colspan="2">
				<?php echo smarty_function_language(array('text' => 'Mod_Account.general_settings'), $this);?>

                </th>
            </tr>

            <tr>
                <td class="row1" style="font-size: 8pt; width: 60%; text-align: right;"><?php echo smarty_function_language(array('text' => 'membership_title'), $this);?>
:</td>
                <td class="row2" style="font-size: 8pt; width: 40%;"><input class="input" size="40" name="aMemb[title]" value="<?php echo $this->_tpl_vars['aMembership']['title']; ?>
"></td>
            </tr>

            <?php if (! $this->_tpl_vars['aMembership']['is_special']): ?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'position'), $this);?>
:</td>
                <td style="width:40%;font-size:8pt;" class="row2">
                    <input type="text" name="aMemb[pos]" size="40" class="input" value="<?php echo $this->_tpl_vars['aMembership']['pos']; ?>
" />
                </td>
            </tr>
            <?php endif; ?>

            <?php if (2 != $this->_tpl_vars['aMembership']['membership_id']): ?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1">
                	<?php echo smarty_function_language(array('text' => 'main_image'), $this);?>
:
                	<div style="padding:4px;">
                	<?php if (! $this->_tpl_vars['sCreate']): ?>
					<?php echo smarty_function_language(array('text' => 'Mod_Account.note_images'), $this);?>
 "/file/pic/membership/"
					<?php else: ?>
					<?php echo smarty_function_language(array('text' => 'Mod_Account.advised_dimensions'), $this);?>

					<?php endif; ?>
					</div>
                </td>
                <td style="width:40%;font-size:8pt;" class="row2">
                	<?php if (! $this->_tpl_vars['sCreate']): ?>
                	<select name="aMemb[img]" style="width:150px;" onchange="document.getElementById('mem_image').src='file/pic/membership/'+ this.value +'';">
                		<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aMemImages'],'selected' => $this->_tpl_vars['aMembership']['img']), $this);?>

                	</select>
                	<img src="file/pic/membership/<?php echo $this->_tpl_vars['aMembership']['img']; ?>
" alt="" id="mem_image" style="vertical-align:top;" />
                	<?php else: ?>
					<?php if (! $this->_tpl_vars['isWritable']): ?>
					<?php echo $this->_tpl_vars['sDestPath']; ?>

					<?php else: ?>
					<input type="file" name="image" />
					<?php endif; ?>
                	<?php endif; ?>
                </td>
            </tr>
            <?php endif; ?>

            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'turn_off_advertisement'), $this);?>
:</td>
                <td style="width:40%;font-size:8pt;" class="row2"><select name="aMemb[no_ads]" style="width:150px;">
                    <option value="1" <?php if (1 == $this->_tpl_vars['aMembership']['no_ads']): ?> selected<?php endif; ?>><?php echo smarty_function_language(array('text' => 'yes'), $this);?>
</option>
                    <option value="0" <?php if (0 == $this->_tpl_vars['aMembership']['no_ads']): ?> selected<?php endif; ?>><?php echo smarty_function_language(array('text' => 'no'), $this);?>
</option>
                </select></td>
            </tr>

            <?php if (2 != $this->_tpl_vars['aMembership']['membership_id']): ?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'blocking_off_users'), $this);?>
:</td>
                <td style="width:40%;font-size:8pt;" class="row2"><select name="aMemb[allow_block]" style="width:150px;">
                    <option value="1" <?php if (1 == $this->_tpl_vars['aMembership']['allow_block']): ?> selected<?php endif; ?>><?php echo smarty_function_language(array('text' => 'yes'), $this);?>
</option>
                    <option value="0" <?php if (0 == $this->_tpl_vars['aMembership']['allow_block']): ?> selected<?php endif; ?>><?php echo smarty_function_language(array('text' => 'no'), $this);?>
</option>
                </select></td>
            </tr>

            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'use_design_tool_for_profile_pages'), $this);?>
:</td>
                <td style="width:40%;font-size:8pt;" class="row2"><select name="aMemb[design_tool]" style="width:150px;">
                    <option value="1" <?php if (1 == $this->_tpl_vars['aMembership']['design_tool']): ?> selected<?php endif; ?>><?php echo smarty_function_language(array('text' => 'yes'), $this);?>
</option>
                    <option value="0" <?php if (0 == $this->_tpl_vars['aMembership']['design_tool']): ?> selected<?php endif; ?>><?php echo smarty_function_language(array('text' => 'no'), $this);?>
</option>
                </select></td>
            </tr>

            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'max_upload_space_in_bytes'), $this);?>
: <br />
                ( 0 <?php echo smarty_function_language(array('text' => 'for_no_limit'), $this);?>
 )</td>
                <td style="width:40%;font-size:8pt;" class="row2"><input type="text" name="aMemb[max_upload]" size="40" class="input" value="<?php echo $this->_tpl_vars['aMembership']['max_upload']; ?>
" /></td>
            </tr>

            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'inbox_limit'), $this);?>
: <br />
                ( 0 <?php echo smarty_function_language(array('text' => 'no_limit'), $this);?>
 )</td>
                <td style="width:40%;font-size:8pt;" class="row2"><input type="text" name="aMemb[max_inbox]" size="40" class="input" value="<?php echo $this->_tpl_vars['aMembership']['max_inbox']; ?>
" /></td>
            </tr>
            <?php endif; ?>

			<?php if (! $this->_tpl_vars['aMembership']['is_special']): ?>
            <tr>
                <th align="center" colspan="2">
				<?php echo smarty_function_language(array('text' => 'Mod_Account.sub_settings'), $this);?>

				</th>
            </tr>
			<?php if (! getParam ( 'sub_system' )): ?>
			 <tr>
                <td class="catBottom" colspan="2" style="text-align:center;">
					<?php echo smarty_function_language(array('text' => 'Mod_Account.notice_sub_system'), $this);?>
 <br />
					<?php echo smarty_function_language(array('text' => 'Mod_Account.can_be_done'), $this);?>
: <a href="<?php echo smarty_function_url(array('link' => 'admin.config.core','edit' => 'subscription'), $this);?>
"><?php echo smarty_function_language(array('text' => 'Mod_Account.sub_url'), $this);?>
</a>
                </td>
			</tr>
			<?php endif; ?>
            <?php if ($this->_tpl_vars['bIsSubscr']): ?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'subscription_price'), $this);?>
: ( <?php echo smarty_function_language(array('text' => 'example_2_95_0_00_for_free_membersh'), $this);?>
 )</td>
                <td style="width:40%;font-size:8pt;" class="row2"><input type="text" name="aMemb[price]" size="40" class="input" value="<?php echo $this->_tpl_vars['aMembership']['price']; ?>
" /></td>
            </tr>
            <?php endif; ?>

            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'little_about_the_payment_plan'), $this);?>
 ( <?php echo smarty_function_language(array('text' => 'no_html'), $this);?>
 )</td>
                <td style="width:40%;font-size:8pt;" class="row2"><textarea name="aMemb[descr]" cols="30" rows="4"><?php echo $this->_tpl_vars['aMembership']['descr']; ?>
</textarea></td>
            </tr>

            <?php if ($this->_tpl_vars['bIsSubscr']): ?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1"><?php echo smarty_function_language(array('text' => 'payment_setup'), $this);?>
:</td>
                <td style="width:40%;font-size:8pt;" class="row2"><select name="aMemb[pay_type]">
                    <option value="onetime"<?php if ('onetime' == $this->_tpl_vars['aMembership']['pay_type']): ?> selected="selected"<?php endif; ?>><?php echo smarty_function_language(array('text' => 'one_time_payment'), $this);?>
</option>
                    <option value="monthly"<?php if ('monthly' == $this->_tpl_vars['aMembership']['pay_type']): ?> selected="selected"<?php endif; ?>><?php echo smarty_function_language(array('text' => 'monthly'), $this);?>
</option>
                </select></td>
            </tr>
            <?php endif; ?>
            <?php endif; ?>

            <?php if (0 != $this->_tpl_vars['aMembership']['membership_id'] && 1 != $this->_tpl_vars['aMembership']['membership_id']): ?>
            <tr>
                <th align="center" colspan="2">
				<?php echo smarty_function_language(array('text' => 'Mod_Account.general_permissions'), $this);?>

                </th>
            </tr>
            <?php $_from = $this->_tpl_vars['aMembership']['perms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aPerm']):
?>
            <?php if (is_array ( $this->_tpl_vars['aPerm']['vals'] )): ?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1">
                	<?php echo $this->_tpl_vars['aPerm']['perm_name'];  if (! $this->_tpl_vars['aPerm']['type']): ?> <?php echo smarty_function_language(array('text' => 'permissions_aperm_perm_name_section'), $this); endif; ?>:
                </td>
                <td style="width:40%;font-size:8pt;" class="row2">
                <?php if ($this->_tpl_vars['aPerm']['type']): ?>
					<input type="text" name="aPerm[<?php echo $this->_tpl_vars['aPerm']['module_perm_id']; ?>
]" value="<?php echo $this->_tpl_vars['aPerm']['val']; ?>
" />
                <?php else: ?>
                	<select name="aPerm[<?php echo $this->_tpl_vars['aPerm']['module_perm_id']; ?>
]" style="width:150px;">
                    	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aPerm']['vals'],'selected' => $this->_tpl_vars['aPerm']['val']), $this);?>

                	</select>
                <?php endif; ?>
                </td>
            </tr>
            <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>
            
            <?php if (2 != $this->_tpl_vars['aMembership']['membership_id']): ?>
            <?php $_from = $this->_tpl_vars['aMembership']['extra']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aExtra']):
?>
            <tr>
                <th align="center" colspan="2">
				<?php echo $this->_tpl_vars['aExtra']['temp']; ?>

                </th>
            </tr>
            <?php $_from = $this->_tpl_vars['aExtra']['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aExtraItem']):
?>
            <tr>
                <td style="width:60%;font-size:8pt;text-align:right;" class="row1">
                	<?php echo $this->_tpl_vars['aExtraItem']['perm_name']; ?>

                </td>
                <td style="width:40%;font-size:8pt;" class="row2">
                	<input type="text" name="aPerm[<?php echo $this->_tpl_vars['aExtraItem']['module_perm_id']; ?>
]" value="<?php echo $this->_tpl_vars['aExtraItem']['val']; ?>
" />
                	<?php if (getParam ( 'debug' )): ?>
                	<?php echo $this->_tpl_vars['aExtraItem']['code']; ?>

                	<?php endif; ?>
                </td>
            </tr>
            <?php endforeach; endif; unset($_from); ?>
            <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>

        </table>

        <table cellspacing="0" width="100%" class="forumline" style="border-top:0px;">
            <tr>
                <td class="catBottom" colspan="2" style="text-align:center;">
                	<span>
                	<?php if ($this->_tpl_vars['sCreate']): ?>
                		<input style="font-size: 10pt; cursor: pointer;" name="act[create_membership]" value="&gt;&gt; <?php echo smarty_function_language(array('text' => 'create_membership'), $this);?>
 &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;" type="submit">
					<?php else: ?>
                        <input type="submit" name="act[update_membership]" value="&gt;&gt; <?php echo smarty_function_language(array('text' => 'save_settings'), $this);?>
 &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;" style="cursor:pointer;font-size:10pt;" />
					<?php endif; ?>
                    </span>
                </td>
            </tr>
        </table>

        </form>
        <br /><br />
        <?php endforeach; endif; unset($_from); ?>
        <br />

        </td>
    </tr>
</table>
<br />
<br />